package cn.yunyichina.provider.pay.constant;

/**
 * Created by Lullaby on 2017/6/16.
 */
public class Pacity {

    public static final String PLATMCHID = "T_YUNYI";
    public static final String OPUSERID = "YunYi-Operator";
    public static final String MESSAGEID = "YunYi-Operator";

    public static final String TRADE_CODE = "001";
    public static final String TRADE_NO_REFUND_CODE = "003";

    public static final String ORDERTRACEINFO = "HIS-YUNYI";
    public static final String API_VERSION = "V1.0.0.1";

    public static final String METHOD_ACCESS_TOKEN = "pacity.api.auth.accesstoken";
    public static final String METHOD_USERINFO_BASE = "pacity.api.user.base";
    public static final String METHOD_USERINFO_REAL = "pacity.api.user.real";
    public static final String METHOD_USERINFO_SICARD = "pacity.api.user.sicard";
    public static final String METHOD_PAY = "pacity.api.trade.pay";
    public static final String METHOD_REFUND = "pacity.api.trade.pay.refund";

    // 平安公钥
    public static final String PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxX4sKyAnO8HYT6ycZNxVsdHwyt3FEPG/sBqKs0UDX/nmDLuvRK8v4YhlUZdq83elb1DmqZ1ad+mOkivOwb33OufGcHx2mbUUwS8Yj5gQx5DEbP5YErXGW1h1MIU60Fl3QzzRl6maUV74KhLD/9YfHRPubcYf56CwVzl5CqJsSXYPl1W/UgjXaV5gb+qpcLH5POkefd8mbZEDRCTDj8JBvGIa/t1A5eVBM2JYHZyh6MAwRPeMFpaW4x/Sr7LSaHSN3XgrahvJd2zy29W5Zb+50Qwni8xupK4HOKRDHO04Wl87LIXWpxkp9mDN4wI/QzL/88GJ/mzSTXuqYNGpO42n2QIDAQAB";
    // 云医私钥
    public static final String PRIVATE_KEY = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDAKO8nQvQZDby2WG7F7uqpaDT/EOLzZUmz2tLxcKZ/wkjceC7CDRDf9Y1f1r1+Fl1/JhTFfZ5oRHSPEdMEmCTWEsZ8S9XQ1yH1SMmlofdM7eJNudXSw5/fXf9mW0w4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Fw0OmSU3ORogYC7RQCNlG/hnZAoGAEgDOYizcHbZysu9mhmicD1hDZ8ooxEprPz+FKxnbJL8Q1kn8yaH3VZDQKk9XZI8CsODipeVVTxKPanQTLqbtLg2EQfTY+nNHuNLNzxcmitRo/qVBxSYFbb3fwaQPUxAvKdqO3fkknJpuLYZU8OMRXkAYSHQ36xyxRcs1mJsJt2kCgYBBGAg6P9vGZxmKoajKQ7r99FJx+HV9qrYG3++wFwZ6+3HhFXZ2hbdOsKwsizK21lGdVcoaIp01DOcAke5Tioy1ymyqEqPq5WK6nKg7uMeJfuH+CNawffzlh1VMn/InfkwLlsaCdMwZMw1EiYwOpoItFfoUQBn/QO/z61FneDC//A==";

    /**
     * 请求用户信息接口权限范围
     */
    public enum UserInfoScope {
        BASE,  //用户基本信息
        REAL,  //用户实名信息
        SICARD //用户社保卡信息
    }

    /**
     * 支付业务场景
     */
    public enum BizScenario {
        HOSPITAL_REG, //预约挂号
        INTER_AGENCY_PAY, //诊间支付
        INSURANCE_PAY, //保险购买
        SI_PAY //社保缴费
    }

    /**
     * 支付业务场景
     */
    public enum PayForm {
        MED_INSUR_FUNDED, //医保支付
        SELF_FUNDED, //自费支付
        INSURANCE_PAY, //保险购买
        SI_PAY //社保缴费
    }

    /**
     * 支付结果(通知接口)
     */
    public enum PayResult {
        PAY_SUCCESS, // 支付成功
        CLOSED // 交易关闭
    }

    /**
     * 支付结果(订单查询接口)
     */
    public enum TradeStatus {
        NOTPAY, // 待支付
        PAYING, // 支付中
        PAY_SUCCESS, // 支付成功
        PAY_FAILED, // 支付失败
        CLOSED // 交易关闭
    }

}
